#makefile

test: test.o source.a
	g++ -o test test.o source.a

source.a: source1.o source2.o
	ar rc source.a source1.o source2.o
	ranlib source.a

test.o: test.cpp
	g++ -c test.cpp

source1.o: source1.cpp
	g++ -c source1.cpp

source2.o: source2.cpp
	g++ -c source2.cpp

clean: 
	rm -fr test *.o *.a

